import cookie from "js-cookie"

export const getJWTToken = ()=>{
    return cookie.get("token") || localStorage.getItem("token") || false
}
export const setJWTToken = (token:string)=>{
    cookie.set("token",token,{
        expires:7 // 天数！
    })
    localStorage.setItem("token",token)
}
export const getUserProfile=()=>{}
export const setUserProfile=()=>{}
